package com.ylkj.wx.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ylkj.wx.dao.EmployeeInfoDAO;
import com.ylkj.wx.dto.EmployeeInfoDTO;
import com.ylkj.wx.entitis.EmployeeEntity;
import com.ylkj.wx.service.EmployeeInfoService;

/**
 * 员工service实现类
 * @author baoy
 *
 */
@Service
public class EmployeeInfoServiceImpl implements EmployeeInfoService{
	
	@Autowired
	private EmployeeInfoDAO employeeInfoDAO;

	@Override
	public List<EmployeeInfoDTO> findEmployeeInfoList(int pageNum, int pageSize) {
		return employeeInfoDAO.findEmployeeInfoList(pageNum, pageSize);
	}

	@Override
	public EmployeeInfoDTO fineOneEmployeeInfoById(int employeeId) {
		return employeeInfoDAO.fineOneEmployeeInfoById(employeeId);
	}

	@Override
	public EmployeeEntity getEmployeeByCodeAndBizCode(String bizCode,
			String employeeCode) {
		// TODO Auto-generated method stub
		return employeeInfoDAO.getEmployeeByCodeAndBizCode(bizCode,employeeCode);
	}

	@Override
	public EmployeeEntity getEmployeeById(String employeeId) {
		// TODO Auto-generated method stub
		return employeeInfoDAO.getEmployeeById(employeeId);
	}

	@Override
	public int updateQrCodeUrl(Long id, String qrCodeUrl) {
		// TODO Auto-generated method stub
		return employeeInfoDAO.updateQrCodeUrl(id,qrCodeUrl);
	}

}
